package com.example.cxf;

import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class ClientRunner {

    public static void main(String[] args) {
        JaxWsServerFactoryBean jaxWsServerFactoryBean = new JaxWsServerFactoryBean();
        jaxWsServerFactoryBean.setAddress("http://localhost:8080/hello");
        jaxWsServerFactoryBean.setServiceClass(IHelloService.class);
        IHelloService server = (IHelloService)jaxWsServerFactoryBean.create();
        server.sayHello("wenhao", 18);
    }
}
